﻿<local:BaseLab x:Class="Rxx.Labs.Reactive.UI.SubscriptionBindingLab"
							 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
							 xmlns:local="clr-namespace:Rxx.Labs"
							 xmlns:rxx="clr-namespace:System.Windows.Reactive;assembly=Rxx"
							 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
							 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
							 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
							 mc:Ignorable="d" 
							 d:DesignHeight="300" d:DesignWidth="700"
							 DataContext="{Binding RelativeSource={RelativeSource Self}}">

	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height=".5*" />
			<RowDefinition Height=".5*" />
			<RowDefinition />
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition />
			<ColumnDefinition />
		</Grid.ColumnDefinitions>

		<TextBlock Grid.Row="0" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Bold"
							 Text="{rxx:Subscription Scalar}" />

		<TextBlock Grid.Row="1" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="25" FontWeight="Bold"
							 Text="{rxx:Subscription RockPaperScissorsCounter}" />

		<StackPanel Grid.Row="2" Grid.Column="0" VerticalAlignment="Center">

			<DockPanel Margin="10">

				<Label DockPanel.Dock="Left" VerticalAlignment="Center" Margin="5,0"
							 Target="{Binding ElementName=FormatTextBox}" Content="Enter a value and press Tab:" />

				<TextBox Name="FormatTextBox" VerticalAlignment="Center"
								 Text="{rxx:Subscription FormatText}" />

			</DockPanel>

			<TextBlock HorizontalAlignment="Center"
								 Text="{rxx:Subscription FormatTextResponse}" />

		</StackPanel>

		<ListBox Grid.Row="0" Grid.Column="1" Grid.RowSpan="2"
						 ItemsSource="{rxx:Subscription SlidingList}" />

		<ListBox Grid.Row="2" Grid.Column="1"
						 ItemsSource="{rxx:Subscription GrowingList}" />

	</Grid>

</local:BaseLab>